<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="layout" content="main"/>
    <title><g:message code="team.create" default="Create Team"/></title>
  </head>
  <body>
    <div class="nav">
      %{--<span class="menuButton"><a class="home" href="${createLinkTo(dir: '')}"><g:message code="home" default="Home" /></a></span>--}%
      <span class="menuButton"><g:link class="list" action="list"><g:message code="team.list" default="Team List"/></g:link></span>
      <span class="menuButton"><g:link class="list" action="search"><g:message code="team.search" default="Team Search"/></g:link></span>
    </div>
    <div class="body">
      <h1><g:message code="team.create" default="Create Team"/></h1>
      <g:if test="${flash.message}">
        <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}"/></div>
      </g:if>
      <g:hasErrors bean="${teamInstance}">
        <div class="errors">
          <g:renderErrors bean="${teamInstance}" as="list"/>
        </div>
      </g:hasErrors>
      <g:form action="save" method="post">
        <div class="dialog">
          <table>
            <tbody>

              %{--<tr class="prop">
                  <td valign="top" class="name">
                      <label for="dateCreated"><g:message code="team.dateCreated" default="Date Created" />:</label>
                  </td>
                  <td valign="top" class="value ${hasErrors(bean: teamInstance, field: 'dateCreated', 'errors')}">
                      <g:datePicker name="dateCreated" value="${teamInstance?.dateCreated}" precision="minute" ></g:datePicker>
                  </td>
              </tr>

              <tr class="prop">
                  <td valign="top" class="name">
                      <label for="lastUpdated"><g:message code="team.lastUpdated" default="Last Updated" />:</label>
                  </td>
                  <td valign="top" class="value ${hasErrors(bean: teamInstance, field: 'lastUpdated', 'errors')}">
                      <g:datePicker name="lastUpdated" value="${teamInstance?.lastUpdated}" precision="minute" ></g:datePicker>
                  </td>
              </tr>--}%

              <tr class="prop">
                <td valign="top" class="name">
                  <label for="name"><g:message code="team.name" default="Name"/>:</label>
                </td>
                <td valign="top" class="value ${hasErrors(bean: teamInstance, field: 'name', 'errors')}">
                  <input type="text" id="name" name="name" value="${fieldValue(bean: teamInstance, field: 'name')}"/>
                </td>
              </tr>

            </tbody>
          </table>
        </div>
        <div class="buttons">
          <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'create', 'default': 'Create')}"/></span>
        </div>
      </g:form>
    </div>
  </body>
</html>
